import java.util.*;
public class Arbol {	
	public static void Espacio(int a){
		for(int i=a;i>0;i--){
			System.out.print(" ");				
		}
	}
	public static void Asteris(int b){
		for(int i=0;i<b;i++){
			System.out.print("*");
		}
	}	
	public static void main(String[] args){
		Arbol ar=new Arbol();
		int n;
		System.out.println("ingrese la altura del arbol");
		Scanner in =new Scanner(System.in);
		n=in.nextInt();
		int aux=1;
		for(int i=n-1;i>=0;i--){
			Espacio(i);
			Asteris(aux);
			System.out.println();
			aux=aux+2;
		}
		
	}	
}	
	
	
	
	
	


